import { post,get } from "./request";

// 自定义api
export function custom(params) {
    const { url, method, data } = params;
    if (method === "get") {
      return get(url, data);
    }
    return post(url, data);
  }